@import '../../less/base';
body {
  background-color: #fafafa;
  color: #303133;
  // 头部区域
  header {
    width: 100%;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    .top {
      position: relative;
      height: 11.7333vw;
      padding: 1.8667vw 0.8vw;
      background-color: #fff;
      text-align: center;
      h1 {
        font-size: 4.2667vw;
        line-height: 8vw;
      }
      .icon-zuojiantou {
        color: #000;
        font-size: 6.1333vw;
        position: absolute;
        left: 1.3333vw;
        top: 2.9333vw;
      }
    }
  }
  // 主体区域
  .main {
    padding-top: 11.7333vw;
    // 搜索框
    .search {
      background-color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 15.2vw;
      padding-left: 2.9333vw;
      padding-right: 2.9333vw;
      .input {
        border-radius: 6.6667vw;
        width: 100%;
        height: 8.8vw;
        background-color: #f7f7f7;
        text-align: center;
        line-height: 8.8vw;
        color: #6d6d6d;
        font-size: 3.2vw;
        span {
          font-size: 4.8vw;
          vertical-align: middle;
        }
      }
      .iconfont {
        font-size: 5.3333vw;
        color: #505050;
        margin-left: 1.3333vw;
      }
    }
    // 导航栏
    nav {
      background-color: #fff;
      display: flex;
      align-items: center;
      height: 12vw;
      div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 33.33%;
        height: 100%;
        font-size: 3.7333vw;
        color: #000;
        &.active {
          color: #e49a3d;
          .iconfont {
            color: #000;
            &.activeI {
              color: #e49a3d;
            }
          }
        }
        span {
          margin-left: 2.6667vw;
          display: flex;
          flex-direction: column;
          .iconfont {
            font-size: 3.2vw;
          }
        }
      }
    }
    // 商品区域
    // 商品区域
    .goods {
      min-height: 133.3333vw;
      a {
        display: block;
        margin-bottom: 1.6vw;
        .good {
          background-color: #fff;
          display: flex;
          padding: 2.6667vw;
          height: 37.3333vw;

          &:last-child {
            margin-bottom: 0;
          }
          .left {
            width: 32vw;
            margin-right: 5.3333vw;

            img {
              width: 100%;
              height: 100%;
            }
          }
          .right {
            flex: 1;

            span {
              color: #999;
              font-size: 3.2vw;
            }
            .top {
              height: 13.3333vw;
              p {
                min-height: 9.0667vw;
                line-height: 1.3;
                white-space: normal;
                color: #484848;
                font-size: 3.4667vw;
                display: -webkit-box;
                word-break: break-all;
                text-overflow: ellipsis;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                margin-bottom: 1.6vw;
              }
            }
            .bottom {
              margin-top: 2.6667vw;
              i {
                color: #f03c3c;
                font-size: 4vw;
              }
              span {
                text-decoration: line-through;
              }
            }
          }
        }
        .goodOther {
          float: left;
          width: 50%;
          height: 66.1333vw;
          padding: 2.6667vw;
          margin-bottom: -1.6vw;
          background-color: #fff;
          &:last-child {
            margin-bottom: 0;
          }
          .left {
            width: 100%;
            height: 48vw;
            margin-right: 5.3333vw;

            img {
              width: 100%;
              height: 100%;
            }
          }
          .right {
            span {
              color: #999;
              font-size: 3.2vw;
            }
            .top {
              height: 13.3333vw;
              p {
                min-height: 9.0667vw;
                line-height: 1.3;
                white-space: normal;
                color: #484848;
                font-size: 3.4667vw;
                display: -webkit-box;
                word-break: break-all;
                text-overflow: ellipsis;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                margin-bottom: 1.6vw;
              }
            }
            .bottom {
              margin-top: -3.33vw;
              i {
                color: #f03c3c;
                font-size: 4vw;
              }
              span {
                text-decoration: line-through;
              }
            }
          }
        }
      }
    }
  }
}
